package design;

public class Singleton_02懒汉模式线程安全 {

    private static Singleton_02懒汉模式线程安全 instance;

    private Singleton_02懒汉模式线程安全() {
    }

    public static synchronized Singleton_02懒汉模式线程安全 getInstance(){
        if (null != instance) return instance;
        return new Singleton_02懒汉模式线程安全();
    }

}
